package com.stylefeng.guns.modular.model.service.impl;

import com.stylefeng.guns.modular.system.model.TicketNum;
import com.stylefeng.guns.modular.system.dao.TicketNumMapper;
import com.stylefeng.guns.modular.model.service.ITicketNumService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.Action;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-06
 */
@Service
public class TicketNumServiceImpl extends ServiceImpl<TicketNumMapper, TicketNum> implements ITicketNumService {
    @Autowired
    private  TicketNumMapper ticketNumMapper;
    @Override
    public TicketNum getTicketnum(Integer lineid,String ticketdate) {
        return this.baseMapper.getTicketnum(lineid, ticketdate);
    }

    @Override
    public void insertTicketNum(TicketNum bean) {
        ticketNumMapper.insertTicketNum(bean);
    }

    @Override
    public TicketNum selcetdigitalcode(Integer lineid) {
        return this.baseMapper.selcetdigitalcode(lineid);
    }
}
